<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<form action="" method="post">
    <input type="hidden" value="{$id}">
    {volist name='all_powers' id='vo'}
    <input type="checkbox" name="{$vo.id}" value="{$vo.id}" <?php if(in_array($vo['id'],$own_powers)){echo 'checked';}?>>{$vo.action}
    {/volist}</br>
    <input type="submit" value="提交">
</form>
</body>
</html>